package chips440.main;

/**
 * Stores a coodinate point with integer precision. Unlike java.awt.Point, it
 * does so without ever using double precision, since the Board is an
 * integer grid. Also encapsulates some basic functionality on cells.
 *
 * @author Ian Voysey
 * @version 1.0
 */
public class Cell{
    private int x;
    private int y;

    /**
     * Creates a new Cell at (x,y)
     */
    public Cell(int x, int y){
	this.x = x;
	this.y = y;
    }

    /**
     * @return the x coordinate of the point.
     */
    public int getX(){ return x; }

    /**
     * @return the y coordinate of the point.
     */
    public int getY(){ return y; }
}
